package operation;

import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-04-17
 * Time: 8:49
 */
public class DisplayOperation implements Operation{
    @Override
    public void work(BookList booklist) {
        System.out.println("显示书籍");
        int cursize = booklist.getBooksize();
        for(int i=0;i<cursize;i++) {
            System.out.println( booklist.getBooks(i) );
        }
    }
}
